-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3 bin #596
Python3 bin #596
Conversation
237874a
to
7ce47f3
Compare
build.rs
Outdated
@@ -425,22 +426,22 @@ fn find_interpreter_and_get_config() -> Result<(InterpreterConfig, HashMap<Strin | |||
}; | |||
|
|||
// check default python | |||
let interpreter_path = "python"; | |||
// let interpreter_path = "python3"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
It's a really nice refactoring 👍 , thank you! |
7ce47f3
to
a883bdb
Compare
@kngwyu yes, it solves exactly that issue |
a883bdb
to
bd426d4
Compare
Ah, sorry, now I noticed the Windows CI fails because of this fix. |
Interesting, I'm wondering if make sense to check in order for both |
build.rs
Outdated
|
||
lazy_static! { | ||
static ref PYTHON_INTERPRETER: &'static str = { | ||
vec!["python3", "python"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vec!["python3", "python"] | |
["python3", "python"] | |
.iter() | |
.find_map(|bin| Command::new(bin).spawn().ok().map(|_| bin)) | |
.expect("Python 3.x interpreter not found") |
Thanks! |
ed5cd0a
to
fe9575a
Compare
Thank you! |
Thank you for the fix 👍. Just saw that the issue was closed. |
Explicitly use the
python3
binary instead of lainpython
to target Python 3.x even on systems where Python 2.x is not installed